<template>
      <div :class="{ mycolor: isTrue }">
          <router-link to="/video/1">肖申克的救赎</router-link>
          <router-link to="/video/2">李小龙</router-link>
          <router-link to="/video/3">西游记</router-link>
          <router-view></router-view>
      </div>
</template>

<script>
import { ref } from "vue";

export default {
  setup() {
    let isTrue = ref(true);
    return {
      isTrue,
    };
  },
};
</script>

<style scoped>
.mycolor {
  width: 200px;
  height: 200px;
  background-color: rgb(0, 255, 149);
}
</style>